/**
 * Bakalarska prace - Inteligentni budik
 * @package sleepCatcher
 * @file FormAlarmAwakeType.h
 * @author Jan Pesava - xpesav00
 * @email xpesav00@stud.fit.vutbr.cz
 * @date 24. 12. 2011
 */

#ifndef FORMALARMAWAKETYPE_H_
#define FORMALARMAWAKETYPE_H_

#include <FBase.h>
#include <FUi.h>

#include "models/SCAlarm.h"

using namespace Osp::Base;
using namespace Osp::Ui::Controls;


class FormAlarmAwakeType :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	FormAlarmAwakeType();
	virtual ~FormAlarmAwakeType();

// Constants
	static const int IDA_BUTTON_BACK = 200;

// Attributes
	SCAlarm* pAlarm;
	CheckButton* pSound;
	CheckButton* pVibration;
	CheckButton* pSoundVibration;
// Methods
public:
	bool Initialize(void);
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	int GetFormId();
	void SetAlarm(SCAlarm* pAlarm);
	SCAlarm* GetAlarm();
	void Update();
	void Redraw();
};

#endif /* FORMALARMAWAKETYPE_H_ */
